Browse Source

Endstand zweiter Praktikumstag: Erstellung des Moduls + Modulverzeichnis; Unittests funktionieren :-)

master
Jonka Winkle 6 years ago
parent
commit
ef2c061674

+ 122
- 112
.idea/workspace.xml View File

@@ -2,23 +2,12 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="39276d0a-00e3-48d0-9c0e-a0d08278b21f" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg4_Quadratzahlen_Server.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg2_Starthash.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/__init__.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/test_hashMod.py" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/__init__.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/AB4_Aufg1.html" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/AB4_Aufg1.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/AB4_Aufg2.html" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/AB4_Aufg2.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Format_zu_AB5.css" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/Format_zu_AB5.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/HTML_Test_Doc.html" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/HTML_Test_Doc.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/LangesDoc.htm" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/LangesDoc.htm" afterDir="false" />
<change beforePath="$PROJECT_DIR$/Popups_zu_AB6.js" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/Popups_zu_AB6.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/formatiert.css" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/formatiert.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Yang_File.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Ying_File.html" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/seehofer.png" beforeDir="false" afterPath="$PROJECT_DIR$/Python-Blockkurs/seehofer.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py" beforeDir="false" afterPath="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@@ -27,16 +16,21 @@
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Unittests_for_test_hashMod_TestHashMod.coverage" NAME="Unittests for test_hashMod.TestHashMod Coverage Results" MODIFIED="1540218541704" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$AB1_Aufg3.coverage" NAME="AB1_Aufg3 Coverage Results" MODIFIED="1538810960299" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$AB1_Aufg5.coverage" NAME="AB1_Aufg5 Coverage Results" MODIFIED="1538811804618" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg2_Starthash.coverage" NAME="Aufg2_Starthash Coverage Results" MODIFIED="1540218936010" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg4_Quadratzahlen_Server.coverage" NAME="Aufg4_Quadratzahlen_Server Coverage Results" MODIFIED="1539864686187" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Pong.coverage" NAME="Pong Coverage Results" MODIFIED="1539414307376" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Tag2_MittelwertAusVariablerAnzahlParameter.coverage" NAME="Tag2_MittelwertAusVariablerAnzahlParameter Coverage Results" MODIFIED="1538815118408" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$hashes.coverage" NAME="hashes Coverage Results" MODIFIED="1540218926822" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Tag2_EigenesSpiel.coverage" NAME="Tag2_EigenesSpiel Coverage Results" MODIFIED="1538827299769" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Starthash.coverage" NAME="Starthash Coverage Results" MODIFIED="1540200159750" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$AB1_Aufg5.coverage" NAME="AB1_Aufg5 Coverage Results" MODIFIED="1538811804618" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg2_Starthash.coverage" NAME="Aufg2_Starthash Coverage Results" MODIFIED="1540200401628" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Unittests_in_test_hashMod_py.coverage" NAME="Unittests in test_hashMod.py Coverage Results" MODIFIED="1540218229095" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg4_VerwendungVonUnittest.coverage" NAME="Aufg4_VerwendungVonUnittest Coverage Results" MODIFIED="1540217916026" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$FirstProgram.coverage" NAME="FirstProgram Coverage Results" MODIFIED="1538766705533" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg3_YingUndYang_Server.coverage" NAME="Aufg3_YingUndYang_Server Coverage Results" MODIFIED="1539861830668" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Aufg4_Quadratzahlen_Server.coverage" NAME="Aufg4_Quadratzahlen_Server Coverage Results" MODIFIED="1539864686187" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018" />
<SUITE FILE_PATH="coverage/Web__und_Skriptsprachen__Python_Blockkurs_$Unittests_for_test_hashMod_TestHashMod_test_hashMod.coverage" NAME="Unittests for test_hashMod.TestHashMod.test_hashMod Coverage Results" MODIFIED="1540218943701" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
</component>
<component name="DatabaseView">
<option name="SHOW_INTERMEDIATE" value="true" />
@@ -77,7 +71,7 @@
<entry key="htm" value="2" />
<entry key="html" value="12" />
<entry key="js" value="2" />
<entry key="py" value="22" />
<entry key="py" value="23" />
<entry key="txt" value="1" />
</counts>
</usages-collector>
@@ -87,7 +81,7 @@
<entry key="HTML" value="14" />
<entry key="JavaScript" value="2" />
<entry key="PLAIN_TEXT" value="1" />
<entry key="Python" value="22" />
<entry key="Python" value="23" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.extensions.edit">
@@ -95,8 +89,8 @@
<entry key="css" value="197" />
<entry key="html" value="925" />
<entry key="js" value="1018" />
<entry key="py" value="10066" />
<entry key="txt" value="229" />
<entry key="py" value="10949" />
<entry key="txt" value="274" />
</counts>
</usages-collector>
<usages-collector id="statistics.file.types.edit">
@@ -104,8 +98,8 @@
<entry key="CSS" value="197" />
<entry key="HTML" value="925" />
<entry key="JavaScript" value="1018" />
<entry key="PLAIN_TEXT" value="229" />
<entry key="Python" value="10066" />
<entry key="PLAIN_TEXT" value="274" />
<entry key="Python" value="10949" />
</counts>
</usages-collector>
</session>
@@ -115,31 +109,22 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221">
<caret line="13" column="21" selection-start-line="13" selection-start-column="21" selection-end-line="13" selection-end-column="21" />
<state relative-caret-position="170">
<caret line="10" column="14" selection-start-line="10" selection-start-column="14" selection-end-line="10" selection-end-column="14" />
<folding>
<marker date="1540201003227" expanded="true" signature="129:134" ph="..." />
<marker date="1540218923327" expanded="true" signature="129:134" ph="..." />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="34">
<caret line="2" selection-start-line="2" selection-end-line="2" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg4_Quadratzahlen_Server.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/test_hashMod.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="391">
<caret line="24" column="26" selection-start-line="24" selection-start-column="26" selection-end-line="24" selection-end-column="26" />
<state relative-caret-position="221">
<caret line="13" column="18" selection-start-line="13" selection-start-column="18" selection-end-line="13" selection-end-column="18" />
<folding>
<element signature="e#0#18#0" expanded="true" />
<element signature="e#0#29#0" expanded="true" />
</folding>
</state>
</provider>
@@ -148,8 +133,8 @@
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg2_Starthash.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="102">
<caret line="7" column="19" selection-start-line="7" selection-start-column="19" selection-end-line="7" selection-end-column="19" />
<state relative-caret-position="51">
<caret line="3" column="11" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
<folding>
<element signature="e#0#10#0" expanded="true" />
</folding>
@@ -195,8 +180,9 @@
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/__init__.py" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/Starthash.py" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg2_Starthash.py" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/test_hashMod.py" />
<option value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py" />
</list>
</option>
</component>
@@ -276,6 +262,13 @@
<item name="mEIM-Praktikum_Webentwicklung" type="462c0819:PsiDirectoryNode" />
<item name="Tag2_22.10.2018" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="b2602c69:ProjectViewProjectNode" />
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="462c0819:PsiDirectoryNode" />
<item name="mEIM-Praktikum_Webentwicklung" type="462c0819:PsiDirectoryNode" />
<item name="Tag2_22.10.2018" type="462c0819:PsiDirectoryNode" />
<item name="krypto" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="b2602c69:ProjectViewProjectNode" />
<item name="Web- und Skriptsprachen (Python-Blockkurs)" type="462c0819:PsiDirectoryNode" />
@@ -291,7 +284,7 @@
<component name="PropertiesComponent">
<property name="DefaultHtmlFileTemplate" value="HTML File" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<property name="list.type.of.created.stylesheet" value="CSS" />
<property name="settings.editor.selected.configurable" value="Errors" />
</component>
@@ -313,7 +306,7 @@
</list>
</option>
</component>
<component name="RunManager" selected="Python.Aufg2_Starthash">
<component name="RunManager" selected="Python tests.Unittests for test_hashMod.TestHashMod.test_hashMod">
<configuration name="Aufg2_Starthash" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
@@ -336,7 +329,7 @@
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="Aufg3_YingUndYang_Server" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="hashes" type="PythonConfigurationType" factoryName="Python" temporary="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
@@ -344,12 +337,12 @@
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="C:\JONKA\Uni\7. Semester (Medizintechnik OHM Nürnberg)\Vorlesung Informationssysteme in der medizintechnik (MEIM)\Web- und Skriptsprachen (Python-Blockkurs)\mEIM-Praktikum_Webentwicklung\Tag1_15.10.2018\Aufg3_YingUndYang_Server.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
@@ -358,86 +351,65 @@
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="Aufg4_Quadratzahlen_Server" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="Unittests for test_hashMod.TestHashMod" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg4_Quadratzahlen_Server.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;test_hashMod.TestHashMod&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method v="2" />
</configuration>
<configuration name="Pong" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="Unittests for test_hashMod.TestHashMod.test_hashMod" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/Pong.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;test_hashMod.TestHashMod.test_hashMod&quot;" />
<option name="_new_targetType" value="&quot;PYTHON&quot;" />
<method v="2" />
</configuration>
<configuration name="Starthash" type="PythonConfigurationType" factoryName="Python" temporary="true">
<configuration name="Unittests in test_hashMod.py" type="tests" factoryName="Unittests" temporary="true" nameIsGenerated="true">
<module name="Web- und Skriptsprachen (Python-Blockkurs)" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018" />
<option name="IS_MODULE_SDK" value="true" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/Starthash.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="false" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<option name="_new_additionalArguments" value="&quot;&quot;" />
<option name="_new_target" value="&quot;$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/test_hashMod.py&quot;" />
<option name="_new_targetType" value="&quot;PATH&quot;" />
<method v="2" />
</configuration>
<list>
<item itemvalue="Python.Pong" />
<item itemvalue="Python.Aufg3_YingUndYang_Server" />
<item itemvalue="Python.Aufg4_Quadratzahlen_Server" />
<item itemvalue="Python.hashes" />
<item itemvalue="Python tests.Unittests in test_hashMod.py" />
<item itemvalue="Python tests.Unittests for test_hashMod.TestHashMod" />
<item itemvalue="Python tests.Unittests for test_hashMod.TestHashMod.test_hashMod" />
<item itemvalue="Python.Aufg2_Starthash" />
<item itemvalue="Python.Starthash" />
</list>
<recent_temporary>
<list>
<item itemvalue="Python tests.Unittests for test_hashMod.TestHashMod.test_hashMod" />
<item itemvalue="Python.Aufg2_Starthash" />
<item itemvalue="Python.Starthash" />
<item itemvalue="Python.Aufg4_Quadratzahlen_Server" />
<item itemvalue="Python.Aufg3_YingUndYang_Server" />
<item itemvalue="Python.Pong" />
<item itemvalue="Python.hashes" />
<item itemvalue="Python tests.Unittests for test_hashMod.TestHashMod" />
<item itemvalue="Python tests.Unittests in test_hashMod.py" />
</list>
</recent_temporary>
</component>
@@ -494,19 +466,46 @@
<option name="project" value="LOCAL" />
<updated>1539862104249</updated>
</task>
<option name="localTasksCounter" value="7" />
<task id="LOCAL-00007" summary="Zwischenstand zweiter Praktikumstag: Erstellung des Moduls + Modulverzeichnis">
<created>1540215936875</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1540215936875</updated>
</task>
<option name="localTasksCounter" value="8" />
<servers />
</component>
<component name="TestHistory">
<history-entry file="Unittests_in_test_hashMod_py - 2018.10.22 at 16h 23m 50s.xml">
<configuration name="Unittests in test_hashMod.py" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_for_test_hashMod_TestHashMod - 2018.10.22 at 16h 29m 02s.xml">
<configuration name="Unittests for test_hashMod.TestHashMod" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_for_test_hashMod_TestHashMod_test_hashMod - 2018.10.22 at 16h 33m 11s.xml">
<configuration name="Unittests for test_hashMod.TestHashMod.test_hashMod" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_for_test_hashMod_TestHashMod_test_hashMod - 2018.10.22 at 16h 33m 30s.xml">
<configuration name="Unittests for test_hashMod.TestHashMod.test_hashMod" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_for_test_hashMod_TestHashMod_test_hashMod - 2018.10.22 at 16h 34m 00s.xml">
<configuration name="Unittests for test_hashMod.TestHashMod.test_hashMod" configurationId="tests" />
</history-entry>
<history-entry file="Unittests_for_test_hashMod_TestHashMod_test_hashMod - 2018.10.22 at 16h 35m 44s.xml">
<configuration name="Unittests for test_hashMod.TestHashMod.test_hashMod" configurationId="tests" />
</history-entry>
</component>
<component name="ToolWindowManager">
<frame x="-8" y="-8" width="1616" height="876" extended-state="6" />
<editor active="true" />
<layout>
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.24357326" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24357326" />
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
<window_info id="Favorites" order="2" side_tool="true" />
<window_info anchor="bottom" id="Message" order="0" />
<window_info anchor="bottom" id="Find" order="1" />
<window_info anchor="bottom" id="Run" order="2" weight="0.32839838" />
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32839838" />
<window_info anchor="bottom" id="Debug" order="3" weight="0.39973083" />
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
@@ -560,7 +559,8 @@
<MESSAGE value="Das ist ein Commit-Test für Janko" />
<MESSAGE value="Fertiges PONG-Spiel (Beta-Version zu finden unter &quot;Tag2_EigenesSpiel.py&quot;)" />
<MESSAGE value="Zwischenstand erster Praktikumstag: Aufgaben 1-3 funktionieren, Aufgabe 4 ist noch zu implementieren" />
<option name="LAST_COMMIT_MESSAGE" value="Zwischenstand erster Praktikumstag: Aufgaben 1-3 funktionieren, Aufgabe 4 ist noch zu implementieren" />
<MESSAGE value="Zwischenstand zweiter Praktikumstag: Erstellung des Moduls + Modulverzeichnis" />
<option name="LAST_COMMIT_MESSAGE" value="Zwischenstand zweiter Praktikumstag: Erstellung des Moduls + Modulverzeichnis" />
</component>
<component name="XDebuggerManager">
<watches-manager>
@@ -693,39 +693,49 @@
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/Starthash.py" />
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg4_Quadratzahlen_Server.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="221">
<caret line="13" column="21" selection-start-line="13" selection-start-column="21" selection-end-line="13" selection-end-column="21" />
<state relative-caret-position="391">
<caret line="24" column="26" selection-start-line="24" selection-start-column="26" selection-end-line="24" selection-end-column="26" />
<folding>
<marker date="1540201003227" expanded="true" signature="129:134" ph="..." />
<element signature="e#0#18#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg2_Starthash.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py">
<provider selected="true" editor-type-id="text-editor">
<state>
<caret column="15" lean-forward="true" selection-start-column="15" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="102">
<caret line="7" column="19" selection-start-line="7" selection-start-column="19" selection-end-line="7" selection-end-column="19" />
<state relative-caret-position="170">
<caret line="10" column="14" selection-start-line="10" selection-start-column="14" selection-end-line="10" selection-end-column="14" />
<folding>
<element signature="e#0#10#0" expanded="true" />
<marker date="1540218923327" expanded="true" signature="129:134" ph="..." />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg2_Starthash.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="34">
<caret line="2" selection-start-line="2" selection-end-line="2" />
<state relative-caret-position="51">
<caret line="3" column="11" selection-start-line="3" selection-start-column="11" selection-end-line="3" selection-end-column="11" />
<folding>
<element signature="e#0#10#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag1_15.10.2018/Aufg4_Quadratzahlen_Server.py">
<entry file="file://$PROJECT_DIR$/mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/test_hashMod.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="391">
<caret line="24" column="26" selection-start-line="24" selection-start-column="26" selection-end-line="24" selection-end-column="26" />
<state relative-caret-position="221">
<caret line="13" column="18" selection-start-line="13" selection-start-column="18" selection-end-line="13" selection-end-column="18" />
<folding>
<element signature="e#0#18#0" expanded="true" />
<element signature="e#0#29#0" expanded="true" />
</folding>
</state>
</provider>

+ 0
- 2
mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/Aufg4_VerwendungVonUnittest.py View File

@@ -1,2 +0,0 @@
import unittest


+ 0
- 0
mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/__init__.py View File


+ 1
- 1
mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/krypto/hashes.py View File

@@ -8,7 +8,7 @@ def hashMod(bytes):
result += byte
return result % sys.maxsize

if __name__ != "__main__":
if __name__ == "__main__":
myByteArray = bytearray("Schokopraline", encoding='utf-8')
hashvalue = hashMod(myByteArray)
print("Ohne importierten Aufruf lautet der Hashwert zu 'Schokopraline': ", hashvalue)

+ 16
- 0
mEIM-Praktikum_Webentwicklung/Tag2_22.10.2018/test_hashMod.py View File

@@ -0,0 +1,16 @@
from unittest import TestCase

from krypto import hashes


class TestHashMod(TestCase):
def test_hashMod(self):
firstCall = hashes.hashMod("Sahnetorte".encode('utf-8'))
secondCall = hashes.hashMod("Sahnetorte".encode('utf-8'))
straingeCall = hashes.hashMod("Kirschkuchen".encode('utf-8'))

self.assertEqual(firstCall, secondCall, "Die Werte sind gleich! -> Test geglückt") # firstCall and secondCall are Equal so test should finish with OK

self.assertNotEqual(firstCall, straingeCall, "Die Werte sind ungleich, Test ebenfalls geglückt!") # firstCall and straingeCall are not equal so test should finish with OK

#self.assertEqual(firstCall, straingeCall, "Die Werte sind gleich! -> Test geglückt") # firstCall and Strainge call are not equal but equality is tested. Test should finish with FAILED

+ 0
- 0
mEIM-Praktikum_Webentwicklung/__init__.py View File


Loading…
Cancel
Save