def test_pad_index_number(self):
     # Creates a data frame with raw ids and no sample column
     df = DataFrame({'#SampleID': self.raw_ids,
                     'WEBSITE': Series(self.website),
                     'DWELL_TIME': Series(self.time)})
     # Pads the raw text
     df = pad_index(df, nzeros=4)
     assert_index_equal(Index(self.raw_ids), df.index)
 def test_pad_index_custom_index(self):
     # Creates a data frame with raw ids and no sample column
     df = DataFrame({'RawID': self.raw_ids,
                     'WEBSITE': Series(self.website),
                     'DWELL_TIME': Series(self.time)})
     # Pads the raw text
     df = pad_index(df, index_col='RawID')
     assert_index_equal(self.df.index, df.index)
 def test_pad_index_number(self):
     # Creates a data frame with raw ids and no sample column
     df = DataFrame({
         '#SampleID': self.raw_ids,
         'WEBSITE': Series(self.website),
         'DWELL_TIME': Series(self.time)
     })
     # Pads the raw text
     df = pad_index(df, nzeros=4)
     assert_index_equal(Index(self.raw_ids), df.index)
 def test_pad_index_custom_index(self):
     # Creates a data frame with raw ids and no sample column
     df = DataFrame({
         'RawID': self.raw_ids,
         'WEBSITE': Series(self.website),
         'DWELL_TIME': Series(self.time)
     })
     # Pads the raw text
     df = pad_index(df, index_col='RawID')
     assert_index_equal(self.df.index, df.index)