Exemplo n.º 1
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())
Exemplo n.º 2
0
 def test_should_return_one_as_second_value(self):
     _get_command_counter_and_increment()
     self.assertEqual(1, _get_command_counter_and_increment())
Exemplo n.º 3
0
 def test_should_return_zero_as_initial_value(self):
     self.assertEqual(0, _get_command_counter_and_increment())
 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())
 def test_should_return_one_as_second_value(self):
     _get_command_counter_and_increment()
     self.assertEqual(1, _get_command_counter_and_increment())
 def test_should_return_zero_as_initial_value(self):
     self.assertEqual(0, _get_command_counter_and_increment())