def setUp(self): self.AUTH_ERROR = "\"Authentication failure.\"\n" self.url = "http://127.0.0.1:9998" self.usr = "******" self.pwd = "asdf" self.no_id_bug = Bug(self.url, self.usr, self.pwd, 1) self.with_id_bug = Bug(self.url, self.usr, self.pwd, 1, random.randint(1, 20)) self.wrong_auth_bug = Bug(self.url, "wrongusr", self.pwd, 1, random.randint(1, 20))
def setUp(self): self.AUTH_ERROR = "\"Authentication failure.\"\n" self.SUCCESS = "\"Success\"\n" self.WRONG_KWARGS = "Wrong kwargs" self.WRONG_PRODUCT = "No such product." self.url = "http://127.0.0.1:9998" self.usr = "******" self.pwd = "asdf" self.no_id_bug = Bug(self.url, self.usr, self.pwd) self.with_id_bug = Bug(self.url, self.usr, self.pwd, randint(1, 10)) self.wrong_auth_bug = Bug(self.url, "wrongusr", self.pwd, 1)