def test_is_ok(self): obj = Auth() obj._auth_status = u'ok' assert_true(obj.is_ok()) conditions_not_ok = (u'fail', u'ready', u'setup') for cno in conditions_not_ok: obj._auth_status = cno assert_false(obj.is_ok())
def test_get_status(self): obj = Auth() obj._auth_status = u'setup' assert_equal(obj.get_auth_status(), u'setup')