Example #1
0
 def test_invalid_user(self):
     user = time.monotonic()
     cfile = create_config(("user={}".format(user), ))
     conf = Config(cfile).load()
     with pytest.raises(ConfigException):
         conf.test_user()
Example #2
0
 def test_invalid_user(self):
     user = time.monotonic()
     cfile = create_config(("user={}".format(user),))
     conf = Config(cfile).load()
     with pytest.raises(ConfigException):
         conf.test_user()
Example #3
0
 def test_invalid_user(self):
     cfile = create_config(('user=xcbsfbsrwgrwgsgrsgsdgrwty4y4fsg',))
     conf = Config(cfile).load()
     with pytest.raises(ConfigException):
         conf.test_user()