def test_create_command_to_run_current_class_with_nosetests_writes_command_to_cache_file_when_successfully_called(self): path_to_current_file = "/tmp/project/tests/aTestFile.py" current_line = 27 current_buffer = self.build_buffer_helper() command_to_run = sut.get_command_to_run_current_class_with_nosetests(path_to_current_file, current_line, current_buffer) last_command = sut.get_command_to_rerun_last_tests() self.assertEqual(command_to_run, last_command)
def test_create_command_to_run_current_class_with_nosetests(self): path_to_current_file = "/tmp/project/tests/aTestFile.py" current_line = " print('This is a test4b')\n" current_buffer = self.build_buffer_helper() command_to_run = sut.get_command_to_run_current_class_with_nosetests(path_to_current_file, current_line, current_buffer) self.assertEqual(":!nosetests /tmp/project/tests/aTestFile.py:Example2", command_to_run)
def test_create_command_to_run_current_class_with_nosetests(self): path_to_current_file = "/tmp/project/tests/aTestFile.py" current_line = 27 current_buffer = self.build_buffer_helper() command_to_run = sut.get_command_to_run_current_class_with_nosetests(path_to_current_file, current_line, current_buffer) self.assertEqual(":!nosetests /tmp/project/tests/aTestFile.py:Example2", command_to_run)