Exemplo n.º 1
0
 def test_help_communication_types(self):
     """Check communication_types help works at all."""
     ds = CommRecordsDataSource()
     recs = ds.help_communication_type(
         self.company, CommRecordsFilter(), "ph")
     actual = set([r['key'] for r in recs])
     self.assertEqual({'Phone'}, actual)
Exemplo n.º 2
0
    def test_help_communication_types(self):
        """
        Check communication_types help works at all.

        """
        ds = CommRecordsDataSource()
        recs = ds.help_communication_type(self.company, CommRecordsFilter(),
                                          "ph")
        actual = {r['value'] for r in recs}
        expected = {'phone', 'job', 'meetingorevent', 'email', 'pssemail'}
        self.assertEqual(expected, actual)
    def test_help_communication_types(self):
        """
        Check communication_types help works at all.

        """
        ds = CommRecordsDataSource()
        recs = ds.help_communication_type(
            self.company, CommRecordsFilter(), "ph")
        actual = {r['value'] for r in recs}
        expected = {'phone', 'job', 'meetingorevent', 'email', 'pssemail'}
        self.assertEqual(expected, actual)