sh_cpl/unittests/unittests_query/models.py

19 lines
397 B
Python
Raw Normal View History

2021-07-25 19:15:02 +02:00
class User:
def __init__(self, name, address):
self.name = name
self.address = address
def __repr__(self):
return f'<{type(self).__name__} {self.name} {self.address}>'
2021-07-25 19:15:02 +02:00
class Address:
def __init__(self, street, nr):
self.street = street
self.nr = nr
def __repr__(self):
return f'<{type(self).__name__} {self.street} {self.nr}>'