Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

from unittest import TestCase 

from members.models import Erfa 

 

 

class TestErfa(TestCase): 

 

def test_erfa_short_name(self): 

e = Erfa(short_name='short') 

self.assertIn(e.short_name, str(e)) 

 

def test_erfa_long_name(self): 

e = Erfa(short_name='short', long_name='long') 

self.assertIn(e.short_name, str(e)) 

self.assertIn(e.long_name, str(e)) 

 

def test_erfa_short_name_double(self): 

e = Erfa(short_name='short', has_doppelmitgliedschaft=True) 

self.assertIn(e.short_name, str(e)) 

self.assertIn('Doppelmitgliedschaft', str(e)) 

 

def test_erfa_long_name_double(self): 

e = Erfa(short_name='short', long_name='long', has_doppelmitgliedschaft=True) 

self.assertIn(e.short_name, str(e)) 

self.assertIn(e.long_name, str(e)) 

self.assertIn('Doppelmitgliedschaft', str(e))