def setUp(self): user = User() user.username = "******" user.set_password("123colab4") user.email = "*****@*****.**" user.id = 1 user.twitter = "usertestcolab" user.facebook = "usertestcolab" user.first_name = "USERtestCoLaB" user.last_name = "COLAB" user.save()
def create_user(self): user = User() user.username = "******" user.set_password("123colab4") user.email = "*****@*****.**" user.id = 1 user.twitter = "usertest" user.facebook = "usertest" user.first_name = "usertest" user.last_name = "COLAB" user.save() return user