Skip to content

Commit

Permalink
Fixed tests checking wrong thing
Browse files Browse the repository at this point in the history
  • Loading branch information
mroig committed Feb 16, 2017
1 parent 5d0126c commit 69b8590
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_switching.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ def test_has_quantity_works(self):
for fact_xml in f1_with_price.get_factures()['OtrasFacturas']:
conceptes, total = fact_xml.get_info_conceptes()
for concept_xml in conceptes:
self.assertTrue(concept_xml.has_price)
self.assertTrue(concept_xml.has_quantity)
xml_no_quantity = xml.replace(
'<UnidadesConcepto>1</UnidadesConcepto>', ''
)
Expand All @@ -507,7 +507,7 @@ def test_has_quantity_works(self):
for fact_xml in f1_without_quantity.get_factures()['OtrasFacturas']:
conceptes, total = fact_xml.get_info_conceptes()
for concept_xml in conceptes:
self.assertFalse(concept_xml.has_price)
self.assertFalse(concept_xml.has_quantity)


class supportClass(object):
Expand Down

0 comments on commit 69b8590

Please sign in to comment.