Example #1
0
    def test_saves_stats(self):
        lender_id = self.respondent.institution_id
        command = Command()
        command.stdout = Mock()
        command.handle()

        found = False
        for stats in LendingStats.objects.all():
            if stats.geo_id == '99999' and stats.institution_id == lender_id:
                found = True
                self.assertEqual(stats.lar_median, 3)
        self.assertTrue(found)
Example #2
0
    def test_saves_stats(self):
        lender_id = str(self.respondent.agency_id) + self.respondent.ffiec_id
        command = Command()
        command.stdout = Mock()
        command.handle()

        found = False
        for stats in LendingStats.objects.all():
            if stats.geoid_id == '99999' and stats.lender == lender_id:
                found = True
                self.assertEqual(stats.median_per_tract, 3)
        self.assertTrue(found)
Example #3
0
    def test_saves_stats(self):
        lender_id = self.respondent.institution_id
        command = Command()
        command.stdout = Mock()
        command.handle()

        found = False
        for stats in LendingStats.objects.all():
            if stats.geo_id == '99999' and stats.institution_id == lender_id:
                found = True
                self.assertEqual(stats.lar_median, 3)
        self.assertTrue(found)
Example #4
0
    def test_saves_stats(self):
        lender_id = str(self.respondent.agency_id) + self.respondent.ffiec_id
        command = Command()
        command.stdout = Mock()
        command.handle()

        found = False
        for stats in LendingStats.objects.all():
            if stats.geoid_id == '99999' and stats.lender == lender_id:
                found = True
                self.assertEqual(stats.median_per_tract, 3)
        self.assertTrue(found)