sh_cpl/unittests/unittests_query/models.py

17 lines
395 B
Python
Raw Permalink 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):
2023-02-20 15:55:20 +01:00
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):
2023-02-20 15:55:20 +01:00
return f"<{type(self).__name__} {self.street} {self.nr}>"