コード例 #1
0
ファイル: test_Record.py プロジェクト: bgr/unnamed_gui_tool
 def test_replace_cannot_add_new_fields(self):
     r = Record()
     with pytest.raises(TypeError):
         r._replace(x=2)
コード例 #2
0
ファイル: test_Record.py プロジェクト: bgr/unnamed_gui_tool
 def test_raises_when_assigning_new_fields(self):
     r = Record()
     with pytest.raises(TypeError):
         r.x = 2