def testFindExact(self): values = ( ('shell', ('shell', 'sh')), ('browse', ('browse', 'bro')), ) for v, expected in values: actual = find_command(v) self.assertEquals(actual, expected)
def testFindNone(self): actual = find_command('foo') self.assertEquals(actual, None)