| Conditions | 1 | 
| Total Lines | 8 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import pytest | ||
| 18 | def test_simple_memoize(simple_memoize): | ||
| 19 | runtime_args = (7, 'gg') | ||
| 20 | runtime_kwargs = dict(kwarg1='something', kwarg2=[1, 2]) | ||
| 21 | instance1 = simple_memoize.get_object(*runtime_args, **runtime_kwargs) | ||
| 22 | instance2 = simple_memoize.get_object(*runtime_args, **runtime_kwargs) | ||
| 23 | assert instance1 == instance2 | ||
| 24 | hash1 = simple_memoize._build_hash(*runtime_args, **runtime_kwargs) | ||
| 25 |     assert hash1 == hash('-'.join([str(_) for _ in runtime_args] + [f'{key}={str(value)}' for key, value in runtime_kwargs.items()])) | ||
| 26 |