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