コード例 #1
0
ファイル: tests.py プロジェクト: Syntox32/VacuumAI
    def test_contains_modifier(self):
        c = Cell(0, 0)
        c.add_modifier("hello", 15)

        self.assertIs(c.contains_modifier("hello"), True)
        self.assertIs(c.contains_modifier("not"), False)
コード例 #2
0
ファイル: tests.py プロジェクト: Syntox32/VacuumAI
 def test_add_modifier(self):
     c = Cell(0, 0)
     c.add_modifier("hello", 15)
     self.assertIs(c.modifiers["hello"], 15)