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