def test_check(self): sys.argv = '- check foo bar bingo'.split(' ') with self.assertRaises(SystemExit): self.assertEquals(parse()[0].func, cmds.up)
def test_up(self): sys.argv = '- up foo bar bingo'.split(' ') self.assertEquals(parse()[0].func, cmds.up)