def test_normal_sub_with_match_tokens(self): match_key = MatchKey('', [], []) subbed_in = match_key._normal_sub('test %M %s', ['this']) self.assertEquals(subbed_in, 'test %M this')
def test_normal_sub_no_match_tokens(self): match_key = MatchKey('', [], []) subbed_in = match_key._normal_sub('test %s %s', ['and', 'this']) self.assertEquals(subbed_in, 'test and this')
def test_normal_sub_no_sub(self): match_key = MatchKey('', [], []) subbed_in = match_key._normal_sub('test', []) self.assertEquals(subbed_in, 'test')
def test_normal_sub_with_match_tokens(self): match_key = MatchKey('', [], []) subbed_in = match_key._normal_sub('test %M %s', ['this']) self.assertEquals(subbed_in, 'test %M this')
def test_normal_sub_no_match_tokens(self): match_key = MatchKey('', [], []) subbed_in = match_key._normal_sub('test %s %s', ['and', 'this']) self.assertEquals(subbed_in, 'test and this')
def test_normal_sub_no_sub(self): match_key = MatchKey('', [], []) subbed_in = match_key._normal_sub('test', []) self.assertEquals(subbed_in, 'test')