Example #1
0
 def test_testjoin_nok_message(self):
     preseed(
         "",
         _NET_ADS_STDERR_NO_LOGON,
         255
     )
     result = self.checkcmd()
     assert not result
Example #2
0
 def test_testjoin_ok_with_stderr_garbage(self):
     preseed(
         "Join is OK",
         _NET_ADS_STDERR_BASIC,
         0
     )
     result = self.checkcmd()
     assert result
Example #3
0
 def test_testjoin_nok_nomessage(self):
     preseed("", '', 255)
     result = self.checkcmd()
     assert not result
Example #4
0
 def test_testjoin_ok(self):
     preseed("Join is OK", '', 0)
     result = self.checkcmd()
     assert result