Exemple #1
0
    def testFindExact(self):
        values = (
            ('shell', ('shell', 'sh')),
            ('browse', ('browse', 'bro')),
        )

        for v, expected in values:
            actual = find_command(v)
            self.assertEquals(actual, expected)
Exemple #2
0
    def testFindExact(self):
        values = (
            ('shell', ('shell', 'sh')),
            ('browse', ('browse', 'bro')),
        )

        for v, expected in values:
            actual = find_command(v)
            self.assertEquals(actual, expected)
Exemple #3
0
 def testFindNone(self):
     actual = find_command('foo')
     self.assertEquals(actual, None)
Exemple #4
0
 def testFindNone(self):
     actual = find_command('foo')
     self.assertEquals(actual, None)