| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 14d2a82 commit f4bfe19
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -290,6 +290,12 @@ def test_attributes_has_parent_attrs(fake_object_with_parent): | |||
| 290 | 290 | assert result == {"attr1": "foo", "alist": [1, 2, 3], "test_id": "42"} | |
| 291 | 291 | ||
| 292 | 292 | ||
| 293 | + def test_to_json(fake_object): | ||
| 294 | + assert fake_object.attr1 == "foo" | ||
| 295 | + result = fake_object.to_json() | ||
| 296 | + assert result == '{"attr1": "foo", "alist": [1, 2, 3]}' | ||
| 297 | + | ||
| 298 | + | ||
| 293 | 299 | def test_asdict(fake_object): | |
| 294 | 300 | assert fake_object.attr1 == "foo" | |
| 295 | 301 | result = fake_object.asdict() | |
| Back | FazBrowse Home | New Git URL |
0 commit comments