示例#1
0
 def test_fundraise_built(self):
     fundraise = Fund(TEST_DATA)
     self.assertEqual(fundraise.name, "Early-stage Fund VII")
     self.assertEqual(fundraise.announced_on, datetime(2014, 6, 10))
     self.assertEqual(fundraise.announced_on_trust_code, 7)
     self.assertEqual(fundraise.money_raised, 550000000)
     self.assertEqual(fundraise.money_raised_currency_code, "USD")
     self.assertEqual(fundraise.money_raised_usd, 550000000)
示例#2
0
 def test_string(self):
     fundraise = Fund(TEST_DATA)
     str(fundraise)
示例#3
0
 def test_fundraise_relationships_built(self):
     fundraise = Fund(TEST_DATA)
     self.assertIsNotNone(fundraise.venture_firm)
     self.assertEqual('Index Ventures', fundraise.venture_firm.name)
     self.assertIsNotNone(fundraise.news)
     self.assertIn('Index Ventures Raise', fundraise.news.get(0).title)