def test_get_added_files_percent_should_return_correct_value(self): f = File('/foo/File', None, 20, 5) f.lines = 200 actual = f.get_added_files_percent() expected = 10.0 self.assertEqual(expected, actual)
def test_get_status_should_return_modified_state(self): f = File('/foo/File', None, 123, 5) f.lines = 200 actual = f.get_status() expected = 'Modified' self.assertEqual(expected, actual)