

def test_create_args(self):
    y = SimpleModel.objects.language('nl').create(tr_title='TRANS_TITLE')
    self.assertEqual(y.get_current_language(), 'nl')
    self.assertEqual(y.tr_title, 'TRANS_TITLE')

dataset/ETHPy150Open edoburu/django-parler/parler/tests/test_model_attributes.py ModelAttributeTests.test_create_args/original