def test_nokaut_possition_true(self): """Testing if it gives good output""" sys.argv[1:] = ["-h"] self.assertTrue(bool(main())) sys.argv[1:] = [ "--name", "macbook", "--key", 'a8839b1180ea00fa1cf7c6b74ca01bb5' ] self.assertTrue((bool(poss_parameters()))) self.assertTrue((bool(main())))
def test_nokaut_possition_false(self): """Testing unknown options""" sys.argv[1:] = ["--csad"] self.assertTrue(bool(main()))