def test_cli_gen_password(self, genpass): """ Commandline prints generated password """ scripts.gen_password() self.assertTrue(genpass.called)
def test_cli_get_password(self, genpass): """ Commandline prints generated password """ genpass.return_value = "foo" scripts.gen_password([]) self.assertTrue(genpass.called)