コード例 #1
0
ファイル: loggingtools_tests.py プロジェクト: Woi/yadtshell
 def test_should_return_two_as_third_value(self):
     _get_command_counter_and_increment()
     _get_command_counter_and_increment()
     self.assertEqual(2, _get_command_counter_and_increment())
コード例 #2
0
ファイル: loggingtools_tests.py プロジェクト: Woi/yadtshell
 def test_should_return_one_as_second_value(self):
     _get_command_counter_and_increment()
     self.assertEqual(1, _get_command_counter_and_increment())
コード例 #3
0
ファイル: loggingtools_tests.py プロジェクト: Woi/yadtshell
 def test_should_return_zero_as_initial_value(self):
     self.assertEqual(0, _get_command_counter_and_increment())
コード例 #4
0
 def test_should_return_two_as_third_value(self):
     _get_command_counter_and_increment()
     _get_command_counter_and_increment()
     self.assertEqual(2, _get_command_counter_and_increment())
コード例 #5
0
 def test_should_return_one_as_second_value(self):
     _get_command_counter_and_increment()
     self.assertEqual(1, _get_command_counter_and_increment())
コード例 #6
0
 def test_should_return_zero_as_initial_value(self):
     self.assertEqual(0, _get_command_counter_and_increment())