Ejemplo n.º 1
0
 def test_get_join_by_event_2(self) -> None:
     """
     test get_join_by_event: event doesn't exist
     """
     Join.create_join(Join(self.user, self.event))
     joins = Join.get_join_by_event('1')
     users = [join.user for join in joins]
     self.assertListEqual(users, [])
Ejemplo n.º 2
0
 def test_get_join_by_event_1(self) -> None:
     """
     test get_join_by_event: event exists
     """
     Join.create_join(Join(self.user, self.event))
     joins = Join.get_join_by_event(self.event)
     users = [join.user for join in joins]
     self.assertListEqual(users, [self.user])