def test_type3(self): value = 1 message = get_client(strict_field=False).message() try: message.subject = value except FieldTypeError: self.assertTrue(False) else: self.assertTrue(True)
def setUp(self): self.start_test_server() self.client = get_client() call_command('loaddata', 'small_data.json')
def setUp(self): self.start_test_server() self.client = get_client() super(CountTestCase, self).setUp()
def setUp(self): self.start_test_server() self.client = get_client()
def setUp(self): self.start_test_server() self.client = get_client(strict_field=False)
def setUp(self): self.start_test_server() self.client = get_client() super(ForeignkeyTestCase, self).setUp()