def testMultipleSourceStamps(self):
        sstamp1 = self.setUpSourceStamp(branch="branch1", revision="rev1")
        sstamp2 = self.setUpSourceStamp(branch="branch2", revision="rev2",
                                        patch="dummy", codebase="base1")

        self.assertEqual("Build Source Stamp: [branch branch1] rev1\n"
                         "Build Source Stamp 'base1': [branch branch2] rev2 "
                         "(plus patch)\n",
                         mail._defaultMessageSourceStamps([sstamp1, sstamp2]))
    def testMultipleSourceStamps(self):
        sstamp1 = self.setUpSourceStamp(branch="branch1", revision="rev1")
        sstamp2 = self.setUpSourceStamp(branch="branch2", revision="rev2",
                                        patch="dummy", codebase="base1")

        self.assertEqual("Build Source Stamp: [branch branch1] rev1\n"
                         "Build Source Stamp 'base1': [branch branch2] rev2 "
                         "(plus patch)\n",
                         mail._defaultMessageSourceStamps([sstamp1, sstamp2]))
    def testOneSourceStamp(self):
        source_stamp = self.setUpSourceStamp()

        self.assertEqual("Build Source Stamp: HEAD\n", mail._defaultMessageSourceStamps([source_stamp]))
 def testNoSourceStamps(self):
     self.assertEqual(mail._defaultMessageSourceStamps([]), "")
    def testOneSourceStamp(self):
        source_stamp = self.setUpSourceStamp()

        self.assertEqual("Build Source Stamp: HEAD\n",
                         mail._defaultMessageSourceStamps([source_stamp]))
 def testNoSourceStamps(self):
     self.assertEqual(mail._defaultMessageSourceStamps([]), "")