daily pastebin goal
2%
SHARE
TWEET

Untitled

a guest Jul 21st, 2017 433 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         user = User.objects.create_user("john", "john@foo.com", "john")
  2.         user.save()
  3.  
  4.         self.assertTrue(self.client.login(username="john", password="john"))
  5.  
  6.         request = self.client.post('devices/')
  7.         self.assertEqual(request.status_code, 200)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top