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