def test_create_command_to_run_current_file_with_nosetests(self): path_to_current_file = "/tmp/project/tests/aTestFile.py" command_to_run = sut.get_command_to_run_current_file_with_nosetests(path_to_current_file) self.assertEqual(":!nosetests /tmp/project/tests/aTestFile.py", command_to_run)
def test_create_command_to_run_current_file_with_nosetests_writes_command_to_cache_file_when_successfully_called(self): path_to_current_file = "/tmp/project/tests/aTestFile.py" command_to_run = sut.get_command_to_run_current_file_with_nosetests(path_to_current_file) last_command = sut.get_command_to_rerun_last_tests() self.assertEqual(command_to_run, last_command)