
"""Test coupled cluster logfiles"""

import os
import unittest

import numpy

__filedir__ = os.path.realpath(os.path.dirname(__file__))


class GenericCCTest(unittest.TestCase):
    """Generic coupled cluster unittest"""

    def testsign(self):
        """Are the coupled cluster corrections negative?"""
        corrections = self.data.ccenergies - self.data.scfenergies
        self.assertTrue(numpy.alltrue(corrections < 0.0))


if __name__ == "__main__":

    import sys
    sys.path.insert(1, os.path.join(__filedir__, ".."))

    from test_data import DataSuite
    suite = DataSuite(['CC'])
    suite.testall()


"""Test coupled cluster logfiles"""

import os
import unittest

import numpy

__filedir__ = os.path.realpath(os.path.dirname(__file__))


class GenericCCTest(unittest.TestCase):
    """Generic coupled cluster unittest"""

    def testsizeandshape(self):
        """Are the dimensions of ccenergies correct?"""
        self.assertEqual(self.data.ccenergies.shape,
                         (len(self.data.scfenergies),))

    def testsign(self):
        """Are the coupled cluster corrections negative?"""
        corrections = self.data.ccenergies - self.data.scfenergies
        self.assertTrue(numpy.alltrue(corrections < 0.0))


if __name__ == "__main__":

    import sys
    sys.path.insert(1, os.path.join(__filedir__, ".."))

    from test_data import DataSuite
    suite = DataSuite(['CC'])
    suite.testall()

Test size and shape of ccenergies
Test size and shape of ccenergies

  
  """Test coupled cluster logfiles"""
  
  import os
  import unittest
  
  import numpy
  
  __filedir__ = os.path.realpath(os.path.dirname(__file__))
  
  
  class GenericCCTest(unittest.TestCase):
      """Generic coupled cluster unittest"""
+ 
+     def testsizeandshape(self):
+         """Are the dimensions of ccenergies correct?"""
+         self.assertEqual(self.data.ccenergies.shape,
+                          (len(self.data.scfenergies),))
  
      def testsign(self):
          """Are the coupled cluster corrections negative?"""
          corrections = self.data.ccenergies - self.data.scfenergies
          self.assertTrue(numpy.alltrue(corrections < 0.0))
  
  
  if __name__ == "__main__":
  
      import sys
      sys.path.insert(1, os.path.join(__filedir__, ".."))
  
      from test_data import DataSuite
      suite = DataSuite(['CC'])
      suite.testall()
  
Test size and shape of ccenergies
## Code Before:

"""Test coupled cluster logfiles"""

import os
import unittest

import numpy

__filedir__ = os.path.realpath(os.path.dirname(__file__))


class GenericCCTest(unittest.TestCase):
    """Generic coupled cluster unittest"""

    def testsign(self):
        """Are the coupled cluster corrections negative?"""
        corrections = self.data.ccenergies - self.data.scfenergies
        self.assertTrue(numpy.alltrue(corrections < 0.0))


if __name__ == "__main__":

    import sys
    sys.path.insert(1, os.path.join(__filedir__, ".."))

    from test_data import DataSuite
    suite = DataSuite(['CC'])
    suite.testall()

## Instruction:
Test size and shape of ccenergies
## Code After:

"""Test coupled cluster logfiles"""

import os
import unittest

import numpy

__filedir__ = os.path.realpath(os.path.dirname(__file__))


class GenericCCTest(unittest.TestCase):
    """Generic coupled cluster unittest"""

    def testsizeandshape(self):
        """Are the dimensions of ccenergies correct?"""
        self.assertEqual(self.data.ccenergies.shape,
                         (len(self.data.scfenergies),))

    def testsign(self):
        """Are the coupled cluster corrections negative?"""
        corrections = self.data.ccenergies - self.data.scfenergies
        self.assertTrue(numpy.alltrue(corrections < 0.0))


if __name__ == "__main__":

    import sys
    sys.path.insert(1, os.path.join(__filedir__, ".."))

    from test_data import DataSuite
    suite = DataSuite(['CC'])
    suite.testall()
