def test_filename_with_two_extra_char_first(self): """ test_filename_with_tow_extra_char """ values = ('xyaxyb', 'ab') self.assertEqual(parse_string(*values), True)
def test_valid_filename_last_character(self): """ test_valid_filename_last_character """ values = ('abc', 'c') self.assertEqual(parse_string(*values), True)
def test_filename_with_one_extra_char_first(self): """ test_filename_with_one_extra_char """ values = ('zazb', 'ab') self.assertEqual(parse_string(*values), True)
def test_filename_and_pattern_none(self): """ test_filename_and_pattern_none """ values = (None, None) self.assertEqual(parse_string(*values), True)
def test_filename_and_pattern_length_zero(self): """ test_filename_and_pattern_length_zero """ values = ('', '') self.assertEqual(parse_string(*values), True)
def test_invalid_filename(self): """ test_valid_filename """ values = ('abc', 'd') self.assertEqual(parse_string(*values), False)
def test_filename_length_less_than_pattern(self): """ test_filename_length_less_than_pattern """ values = ('a', 'ab') self.assertEqual(parse_string(*values), False)
def test_filename_length_zero(self): """ test_filename_length_zero """ values = ('', 'a') self.assertEqual(parse_string(*values), False)