Skip to content

Commit

Permalink
Use self.assertIsNotNone
Browse files Browse the repository at this point in the history
  • Loading branch information
lanierd-adsk committed Jan 29, 2024
1 parent 8412215 commit eba4ec7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ def test_UsdStagePayloadsFromScene(self):
shapeNode = "FlowerPotShape"
shapeStage = mayaUsdLib.GetPrim(shapeNode).GetStage()
rootPrim = shapeStage.GetPrimAtPath('/FlowerPot')
self.assertFalse(rootPrim== None)
self.assertIsNotNone(rootPrim)
modVariant = rootPrim.GetVariantSet('modelingVariant')
self.assertFalse(modVariant== None)
self.assertIsNotNone(modVariant)
self.assertEqual(modVariant.GetVariantSelection(), 'FlowerPotA')

modVariant.SetVariantSelection('FlowerPotB')
Expand Down

0 comments on commit eba4ec7

Please sign in to comment.