| Total Complexity | 2 | 
| Total Lines | 9 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | from django.contrib.auth import get_user_model  | 
            ||
| 11 | class CompatTestCase(SimpleTestCase):  | 
            ||
| 12 | def test_get_user_email_field_name_returns_proper_value(self):  | 
            ||
| 13 | if django.VERSION >= (1, 11):  | 
            ||
| 14 | email_field_name = User.get_email_field_name()  | 
            ||
| 15 | else:  | 
            ||
| 16 | email_field_name = settings.USER_EMAIL_FIELD_NAME  | 
            ||
| 17 | |||
| 18 | user_email_field_name = get_user_email_field_name(User)  | 
            ||
| 19 | self.assertEquals(user_email_field_name, email_field_name)  | 
            ||
| 20 | 
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.