← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1503055] [NEW] Use AssertIsNone

 

Public bug reported:

Neutron should use the specific assertion:

  self.assertIs(Not)None(observed)

instead of the generic assertion:

  self.assert(Not)Equal(None, observed)

** Affects: neutron
     Importance: Undecided
     Assignee: Cedric Brandily (cbrandily)
         Status: In Progress


** Tags: low-hanging-fruit unittest

** Description changed:

  Neutron should use the specific assertion:
  
-   self.assertIs(Not)None(observed)
+   self.assertIs(Not)None(observed)
  
- when instead of the generic assertion:
+ instead of the generic assertion:
  
-   self.assert(Not)Equal(None, observed)
+   self.assert(Not)Equal(None, observed)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1503055

Title:
  Use AssertIsNone

Status in neutron:
  In Progress

Bug description:
  Neutron should use the specific assertion:

    self.assertIs(Not)None(observed)

  instead of the generic assertion:

    self.assert(Not)Equal(None, observed)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1503055/+subscriptions


Follow ups