Exemplo n.º 1
0
 def test_create_profile(self):
     username = "******"
     self.assertTrue(Application.createProfile(username))
     self.assertTrue(username in Application.getFiles("profiles/"))
Exemplo n.º 2
0
 def test_create_profile_none_name(self):
     username = None
     self.assertFalse(Application.createProfile(username))
Exemplo n.º 3
0
 def test_create_profile_empty_name(self):
     username = ""
     self.assertFalse(Application.createProfile(username))
Exemplo n.º 4
0
 def BotonCreate(self):
     if self.name_text != "":
         Application.createProfile(self.name_text)
         self.BotonHome()