Пример #1
0
 def test_faangm_url_post(self):
     """
     Ensure we can create a new object.
     """
     data = {'name': 'Pied Piper', 'founders': 'Richard Hendricks', 'created': str_today_1(), 'location': 'Erlich Bachman\'s business incubator'}
     url = ('/faangm/')
     response = self.client.post(url, data, format='json')
     self.assertEqual(response.status_code, status.HTTP_201_CREATED)
Пример #2
0
 def test_something():
     compare(sample1.str_today_1(), '2001-01-01')
Пример #3
0
 def test_something():
     from datetime import date
     compare(date.today(), d(2001, 1, 1))
     compare(sample1.str_today_1(), '2001-01-02')