Commits

Ben Bass  committed 7f781c5

simplify SimpleMock

  • Participants
  • Parent commits 68d432f

Comments (0)

Files changed (1)

File pylibftdi/test_driver.py

         self.__name = name
 
     def __getattr__(self, key):
-        return self.__dict__.get(key, SimpleMock(key))
-
-    def __setattr__(self, key, value):
-        return self.__dict__.__setitem__(key, value)
+        return SimpleMock(key)
 
     def __call__(self, *o, **k):
         fn_log.append(self.__name)